how to add illegal characters to paths python

46

invalid = '<>:"/\|?* '

for char in invalid:
	filename = filename.replace(char, '')
	
print filename

Comments

Submit
0 Comments